//
//  DemoViewController.m
//  Work
//
//  Created by 任文义 on 15/12/14.
//  Copyright (c) 2015年 work. All rights reserved.
//

#import "DemoViewController.h"
#import "WebTool.h"
#import "Database.h"
@interface DemoViewController ()<UIWebViewDelegate>

@end

@implementation DemoViewController
- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
       self.navigationController.navigationBarHidden = YES;
   UIWebView *webView   = [WebTool webViewCreatWithString:VisitorURL WithIsScrollEnable:YES];
    webView.delegate = self;
    [self.view addSubview:webView];
    
}
/**
 *  //
 //    UIWebView *webView = [[UIWebView alloc] initWithFrame:[UIScreen mainScreen].bounds];
 //    NSURL *url = [[NSURL alloc] initWithString:@"http://www.sunways-portal.com/phone/phone.ActionLogin.do?doType=visitor&language=English"];
 //    NSURLRequest *request = [[NSURLRequest alloc] initWithURL:url];
 //    webView.scrollView.showsVerticalScrollIndicator = NO;
 //    webView.scalesPageToFit = YES;
 //    webView.delegate = self;
 //    webView.scrollView.scrollEnabled = YES;
 //    [webView loadRequest:request];
 */
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
